<?xml version="1.0" encoding="ascii"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>xmpp.protocol.DataField</title>
  <link rel="stylesheet" href="epydoc.css" type="text/css" />
  <script type="text/javascript" src="epydoc.js"></script>
</head>

<body bgcolor="white" text="black" link="blue" vlink="#204080"
      alink="#204080">
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="xmpp-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

      <th class="navbar" width="100%"></th>
  </tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
  <tr valign="top">
    <td width="100%">
      <span class="breadcrumbs">
        <a href="xmpp-module.html">Package&nbsp;xmpp</a> ::
        <a href="xmpp.protocol-module.html">Module&nbsp;protocol</a> ::
        Class&nbsp;DataField
      </span>
    </td>
    <td>
      <table cellpadding="0" cellspacing="0">
        <!-- hide/show private -->
        <tr><td align="right"><span class="options">[<a href="javascript:void(0);" class="privatelink"
    onclick="toggle_private();">hide&nbsp;private</a>]</span></td></tr>
        <tr><td align="right"><span class="options"
            >[<a href="frames.html" target="_top">frames</a
            >]&nbsp;|&nbsp;<a href="xmpp.protocol.DataField-class.html"
            target="_top">no&nbsp;frames</a>]</span></td></tr>
      </table>
    </td>
  </tr>
</table>
<!-- ==================== CLASS DESCRIPTION ==================== -->
<h1 class="epydoc">Class DataField</h1><span class="codelink"><a href="xmpp.protocol-pysrc.html#DataField">source&nbsp;code</a></span><br /><br />
<pre class="base-tree">
<a href="xmpp.simplexml.Node-class.html">simplexml.Node</a> --+
                 |
                <strong class="uidshort">DataField</strong>
</pre>

<hr />
This class is used in the DataForm class to describe the single data 
  item. If you are working with jabber:x:data (XEP-0004, XEP-0068, 
  XEP-0122) then you will need to work with instances of this class.<br /><br />

<!-- ==================== INSTANCE METHODS ==================== -->
<a name="section-InstanceMethods"></a>
<table class="summary" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td colspan="2" class="table-header">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr valign="top">
        <td align="left"><span class="table-header">Instance Methods</span></td>
        <td align="right" valign="top"
         ><span class="options">[<a href="#section-InstanceMethods"
         class="privatelink" onclick="toggle_private();"
         >hide private</a>]</span></td>
      </tr>
    </table>
  </td>
</tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="xmpp.protocol.DataField-class.html#__init__" class="summary-sig-name">__init__</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">name</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">value</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">typ</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">required</span>=<span class="summary-sig-default">0</span>,
        <span class="summary-sig-arg">label</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">desc</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">options</span>=<span class="summary-sig-default"><code class="variable-group">[</code><code class="variable-group">]</code></span>,
        <span class="summary-sig-arg">node</span>=<span class="summary-sig-default">None</span>)</span><br />
      Create new data field of specified name,value and type.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="xmpp.protocol-pysrc.html#DataField.__init__">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="setRequired"></a><span class="summary-sig-name">setRequired</span>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">req</span>=<span class="summary-sig-default">1</span>)</span><br />
      Change the state of the 'required' flag.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="xmpp.protocol-pysrc.html#DataField.setRequired">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="isRequired"></a><span class="summary-sig-name">isRequired</span>(<span class="summary-sig-arg">self</span>)</span><br />
      Returns in this field a required one.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="xmpp.protocol-pysrc.html#DataField.isRequired">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="setLabel"></a><span class="summary-sig-name">setLabel</span>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">label</span>)</span><br />
      Set the label of this field.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="xmpp.protocol-pysrc.html#DataField.setLabel">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="getLabel"></a><span class="summary-sig-name">getLabel</span>(<span class="summary-sig-arg">self</span>)</span><br />
      Return the label of this field.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="xmpp.protocol-pysrc.html#DataField.getLabel">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="setDesc"></a><span class="summary-sig-name">setDesc</span>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">desc</span>)</span><br />
      Set the description of this field.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="xmpp.protocol-pysrc.html#DataField.setDesc">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="getDesc"></a><span class="summary-sig-name">getDesc</span>(<span class="summary-sig-arg">self</span>)</span><br />
      Return the description of this field.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="xmpp.protocol-pysrc.html#DataField.getDesc">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="setValue"></a><span class="summary-sig-name">setValue</span>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">val</span>)</span><br />
      Set the value of this field.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="xmpp.protocol-pysrc.html#DataField.setValue">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="getValue"></a><span class="summary-sig-name">getValue</span>(<span class="summary-sig-arg">self</span>)</span></td>
          <td align="right" valign="top">
            <span class="codelink"><a href="xmpp.protocol-pysrc.html#DataField.getValue">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="xmpp.protocol.DataField-class.html#setValues" class="summary-sig-name">setValues</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">lst</span>)</span><br />
      Set the values of this field as values-list.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="xmpp.protocol-pysrc.html#DataField.setValues">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="xmpp.protocol.DataField-class.html#addValue" class="summary-sig-name">addValue</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">val</span>)</span><br />
      Add one more value to this field.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="xmpp.protocol-pysrc.html#DataField.addValue">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="getValues"></a><span class="summary-sig-name">getValues</span>(<span class="summary-sig-arg">self</span>)</span><br />
      Return the list of values associated with this field.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="xmpp.protocol-pysrc.html#DataField.getValues">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="getOptions"></a><span class="summary-sig-name">getOptions</span>(<span class="summary-sig-arg">self</span>)</span><br />
      Return label-option pairs list associated with this field.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="xmpp.protocol-pysrc.html#DataField.getOptions">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="setOptions"></a><span class="summary-sig-name">setOptions</span>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">lst</span>)</span><br />
      Set label-option pairs list associated with this field.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="xmpp.protocol-pysrc.html#DataField.setOptions">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="addOption"></a><span class="summary-sig-name">addOption</span>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">opt</span>)</span><br />
      Add one more label-option pair to this field.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="xmpp.protocol-pysrc.html#DataField.addOption">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="getType"></a><span class="summary-sig-name">getType</span>(<span class="summary-sig-arg">self</span>)</span><br />
      Get type of this field.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="xmpp.protocol-pysrc.html#DataField.getType">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="setType"></a><span class="summary-sig-name">setType</span>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">val</span>)</span><br />
      Set type of this field.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="xmpp.protocol-pysrc.html#DataField.setType">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="getVar"></a><span class="summary-sig-name">getVar</span>(<span class="summary-sig-arg">self</span>)</span><br />
      Get 'var' attribute value of this field.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="xmpp.protocol-pysrc.html#DataField.getVar">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="setVar"></a><span class="summary-sig-name">setVar</span>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">val</span>)</span><br />
      Set 'var' attribute value of this field.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="xmpp.protocol-pysrc.html#DataField.setVar">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
  <tr>
    <td colspan="2" class="summary">
    <p class="indent-wrapped-lines"><b>Inherited from <code><a href="xmpp.simplexml.Node-class.html">simplexml.Node</a></code></b>:
      <code><a href="xmpp.simplexml.Node-class.html#__delitem__">__delitem__</a></code>,
      <code><a href="xmpp.simplexml.Node-class.html#__getattr__">__getattr__</a></code>,
      <code><a href="xmpp.simplexml.Node-class.html#__getitem__">__getitem__</a></code>,
      <code><a href="xmpp.simplexml.Node-class.html#__setitem__">__setitem__</a></code>,
      <code><a href="xmpp.simplexml.Node-class.html#__str__">__str__</a></code>,
      <code><a href="xmpp.simplexml.Node-class.html#addChild">addChild</a></code>,
      <code><a href="xmpp.simplexml.Node-class.html#addData">addData</a></code>,
      <code><a href="xmpp.simplexml.Node-class.html#clearData">clearData</a></code>,
      <code><a href="xmpp.simplexml.Node-class.html#delAttr">delAttr</a></code>,
      <code><a href="xmpp.simplexml.Node-class.html#delChild">delChild</a></code>,
      <code><a href="xmpp.simplexml.Node-class.html#getAttr">getAttr</a></code>,
      <code><a href="xmpp.simplexml.Node-class.html#getAttrs">getAttrs</a></code>,
      <code><a href="xmpp.simplexml.Node-class.html#getCDATA">getCDATA</a></code>,
      <code><a href="xmpp.simplexml.Node-class.html#getChildren">getChildren</a></code>,
      <code><a href="xmpp.simplexml.Node-class.html#getData">getData</a></code>,
      <code><a href="xmpp.simplexml.Node-class.html#getName">getName</a></code>,
      <code><a href="xmpp.simplexml.Node-class.html#getNamespace">getNamespace</a></code>,
      <code><a href="xmpp.simplexml.Node-class.html#getParent">getParent</a></code>,
      <code><a href="xmpp.simplexml.Node-class.html#getPayload">getPayload</a></code>,
      <code><a href="xmpp.simplexml.Node-class.html#getTag">getTag</a></code>,
      <code><a href="xmpp.simplexml.Node-class.html#getTagAttr">getTagAttr</a></code>,
      <code><a href="xmpp.simplexml.Node-class.html#getTagData">getTagData</a></code>,
      <code><a href="xmpp.simplexml.Node-class.html#getTags">getTags</a></code>,
      <code><a href="xmpp.simplexml.Node-class.html#has_attr">has_attr</a></code>,
      <code><a href="xmpp.simplexml.Node-class.html#setAttr">setAttr</a></code>,
      <code><a href="xmpp.simplexml.Node-class.html#setData">setData</a></code>,
      <code><a href="xmpp.simplexml.Node-class.html#setName">setName</a></code>,
      <code><a href="xmpp.simplexml.Node-class.html#setNamespace">setNamespace</a></code>,
      <code><a href="xmpp.simplexml.Node-class.html#setParent">setParent</a></code>,
      <code><a href="xmpp.simplexml.Node-class.html#setPayload">setPayload</a></code>,
      <code><a href="xmpp.simplexml.Node-class.html#setTag">setTag</a></code>,
      <code><a href="xmpp.simplexml.Node-class.html#setTagAttr">setTagAttr</a></code>,
      <code><a href="xmpp.simplexml.Node-class.html#setTagData">setTagData</a></code>
      </p>
    </td>
  </tr>
</table>
<!-- ==================== CLASS VARIABLES ==================== -->
<a name="section-ClassVariables"></a>
<table class="summary" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td colspan="2" class="table-header">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr valign="top">
        <td align="left"><span class="table-header">Class Variables</span></td>
        <td align="right" valign="top"
         ><span class="options">[<a href="#section-ClassVariables"
         class="privatelink" onclick="toggle_private();"
         >hide private</a>]</span></td>
      </tr>
    </table>
  </td>
</tr>
  <tr>
    <td colspan="2" class="summary">
    <p class="indent-wrapped-lines"><b>Inherited from <code><a href="xmpp.simplexml.Node-class.html">simplexml.Node</a></code></b>:
      <code><a href="xmpp.simplexml.Node-class.html#FORCE_NODE_RECREATION">FORCE_NODE_RECREATION</a></code>
      </p>
    </td>
  </tr>
</table>
<!-- ==================== METHOD DETAILS ==================== -->
<a name="section-MethodDetails"></a>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td colspan="2" class="table-header">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr valign="top">
        <td align="left"><span class="table-header">Method Details</span></td>
        <td align="right" valign="top"
         ><span class="options">[<a href="#section-MethodDetails"
         class="privatelink" onclick="toggle_private();"
         >hide private</a>]</span></td>
      </tr>
    </table>
  </td>
</tr>
</table>
<a name="__init__"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">__init__</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">name</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">value</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">typ</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">required</span>=<span class="sig-default">0</span>,
        <span class="sig-arg">label</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">desc</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">options</span>=<span class="sig-default"><code class="variable-group">[</code><code class="variable-group">]</code></span>,
        <span class="sig-arg">node</span>=<span class="sig-default">None</span>)</span>
    <br /><em class="fname">(Constructor)</em>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="xmpp.protocol-pysrc.html#DataField.__init__">source&nbsp;code</a></span>&nbsp;
    </td>
  </table>
  
  Create new data field of specified name,value and type. Also 
  'required','desc' and 'options' fields can be set. Alternatively other 
  XML object can be passed in as the 'node' parameted to replicate it as a 
  new datafiled.
  <dl class="fields">
    <dt>Overrides:
      <a href="xmpp.simplexml.Node-class.html#__init__">simplexml.Node.__init__</a>
    </dt>
  </dl>
</td></tr></table>
</div>
<a name="setValues"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">setValues</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">lst</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="xmpp.protocol-pysrc.html#DataField.setValues">source&nbsp;code</a></span>&nbsp;
    </td>
  </table>
  
  Set the values of this field as values-list. Replaces all previous 
  filed values! If you need to just add a value - use addValue method.
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="addValue"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">addValue</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">val</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="xmpp.protocol-pysrc.html#DataField.addValue">source&nbsp;code</a></span>&nbsp;
    </td>
  </table>
  
  Add one more value to this field. Used in 'get' iq's or such.
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<br />
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="xmpp-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

      <th class="navbar" width="100%"></th>
  </tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
  <tr>
    <td align="left" class="footer">
    Generated by Epydoc 3.0beta1 on Sat Dec 15 22:25:15 2007
    </td>
    <td align="right" class="footer">
      <a href="http://epydoc.sourceforge.net">http://epydoc.sourceforge.net</a>
    </td>
  </tr>
</table>

<script type="text/javascript">
  <!--
  // Private objects are initially displayed (because if
  // javascript is turned off then we want them to be
  // visible); but by default, we want to hide them.  So hide
  // them unless we have a cookie that says to show them.
  checkCookie()
  // -->
</script>
  
</body>
</html>
